<%@page import="mkis.service.root.utils.MkisUtils"%>
<%@page import="java.io.PrintWriter"%>
<%@page import="mkis.service.root.constants.Constants"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
function page(page){
	$("#pageFrm input[name='page']").val(page);
	$("#pageFrm").submit();
}
function block(page){
	$("#pageFrm input[name='page']").val(page*6);
	$("#pageFrm").submit();
}
</script>
<!-- page -->
<nav class="pg_wrap">
	<span class="pg">
		<% 
			Object totalcntobj=request.getAttribute("totalcnt");;
			Object pageobj=request.getAttribute("page");
			
			if(totalcntobj==null){ 
				totalcntobj=0;
			}
			if(pageobj==null){
				pageobj=1;
			}
		
			int totalcnt=(Integer)totalcntobj;
			int pageNo=(Integer)pageobj;
		%>
		<%= MkisUtils.makePaging(pageNo, totalcnt)%>
	</span>
</nav>